<? if(!defined('IN_FANWE')) exit('Access Denied'); if(intval($_FANWE['uid']) > 0) { ?>
<p class="txt">您好，<?=$_FANWE['user']['user_name']?></p>
<p class="link"><a class="center" href="<? echo U('user/center'); ?>">个人中心</a><span>|</span><a href="<? echo U('user/logout'); ?>">退出</a></p>
<? } else { ?>
<p class="txt">免费注册，更多便利</p>
<p class="link"><a class="login" href="<? echo U('user/login'); ?>">登录</a><span>|</span><a href="<? echo U('user/reg'); ?>">注册会员</a></p>
<? } ?>